# 导入库
import gradio as gr


# 定义交互逻辑
def greet(name):
    return f"你好啊！{name}"

# 构建界面
demo = gr.Interface(
    fn=greet,
    inputs="text",
    outputs="text"
)

# 加载页面
demo.launch()